package com.cap.bts.crmdp.dealer.masterinfo.dao;

import com.cap.bts.crmdp.dealer.masterinfo.domain.MasterFileModel;
import com.cap.bts.crmdp.dealer.masterinfo.dto.MasterFileDto;
import com.cap.bts.framework.common.dao.IBaseDao;
import com.cap.bts.framework.common.exception.AppException;

public interface IMasterFileDao extends IBaseDao<MasterFileModel, Long> {

    /**
     * 根据文件名称查询已经同步过的master文件
     * @param masterFileDto
     * @return
     * @throws AppException
     */
    public MasterFileModel getMasterFileInfoByFileName(MasterFileDto masterFileDto)
                                                                                   throws AppException;

    /**
     * 保存同步的文件属性信息
     * @param masterFileModel
     * @return
     * @throws AppException
     */
    public MasterFileModel insertMasterFileInfo(MasterFileModel masterFileModel) throws AppException;

}
